package ren.kane.asdppp.transaction.change.method;

import ren.kane.asdppp.method.PaymentMethod;
import ren.kane.asdppp.Employee;
import ren.kane.asdppp.transaction.change.ChangeEmployeeTransaction;

/**
 * @author renrk(1275) on 2019-04-20 9:43 PM
 **/
public abstract class ChangeMethodTransaction extends ChangeEmployeeTransaction {

    public ChangeMethodTransaction() {
    }

    public ChangeMethodTransaction(int empId) {
        super(empId);
    }

    @Override
    protected void change(Employee employee) {
        employee.setPaymentMethod(getMethod());
    }

    protected abstract PaymentMethod getMethod();
}
